package com.weiaibenpao.demo.chislim.util;

import android.Manifest;

import com.weiaibenpao.demo.chislim.bean.MenuBean;
import com.weiaibenpao.demo.chislim.bean.SportDisSpiceBean;
import com.weiaibenpao.demo.chislim.bean.SportTypeBean;

import java.util.ArrayList;

/**
 * Created by lenovo on 2016/8/13.
 */

public class Default {
//    public static final String PRODUCT_URL = "http://120.78.12.180/";
//    public static final String PRODUCT_URL = "http://101.132.38.94/";
    public static final String PRODUCT_URL = "http://www.djq42195.com/";
    public static final String url_gaoming = "http://192.168.1.124:8080/";
    public static final String url_li_de = "http://192.168.1.134:8080/";
    public static final String baiduKey = "467fa36385f73a29f31a6be49a221857";
    public static final String qiniu = "http://ofplk6att.bkt.clouddn.com/";
    public static final String getOneByPhone = "getOneByPhone";
    public static final String getAllTeach = "getAll";
    public static final String getOne = "getOne";
    public static final String updateUser = "updateUser";
    public static final String getOneSport = "getOne";
    public static final String updateProject = "updateProject";
    public static final String updateChannelId = "updateChannelId";
    public static final String countDis = "countDis";
    public static final String getOneByQQ = "getOneByQQ";
    public static final String getOneByWxin = "getOneByWxin";
    public static final String updateMark = "updateMark";
    public static final String getOneByWbo = "getOneByWbo";
    public static final String appKey = "e42cce3acb4d25422ca7451cdb6dc5d2";    //天气预报，聚合的数据

    public static final String PIC_URL = "http://oypxg8l6o.bkt.clouddn.com/";
    public static boolean  kaifaban = true;           //判断是否为开发版

    public static final int FIND = 0;
    public static final int LINK = 1;
    public static final int START = 2;
    public static final int STOP = 3;
    public static final long TIME_OUT = 20000;// 扫描超时时间
//    运动类型 int 0室内运动 1室外运动 2行政室内 3 行政室外 4趣味室内 5趣味室外 6马拉松团队 7马拉松个人 8发布会运动

    public static final String SPORT_HISTORY_URL = "sportHistory_url";


    public static ArrayList initList(){
        ArrayList disList = new ArrayList();
        disList.add(3);
        disList.add(5);
        disList.add(7);
        disList.add(9);
        disList.add(10);
        disList.add(15);
        disList.add(20);
        disList.add(25);
        disList.add(30);
        disList.add(35);
        disList.add(40);
        disList.add(50);
        disList.add(70);
        disList.add(100);
        return disList;
    }


    public static final int WRITE_EXTERNAL_STORAGE_CODE = 6;
    public static final int REQUEST_PERMISSION_CODE = 7;
    public static final String NICK = "nick";
        public static final String TYPE = "type";

    public static ArrayList MenuList(){
        ArrayList menuList = new ArrayList();

        MenuBean menuBean1 = new MenuBean("http://ofplk6att.bkt.clouddn.com/home_music.png","音乐");
        MenuBean menuBean2 = new MenuBean("http://ofplk6att.bkt.clouddn.com/home_movie.png","电影");
        menuList.add(menuBean1);
        menuList.add(menuBean2);
        return menuList;
    }

    public static ArrayList getTeachMenuList(){
        ArrayList<String> teachMenuList = new ArrayList<String>();
        teachMenuList.add("全部教程");
        teachMenuList.add("减脂");
        teachMenuList.add("塑型");
        teachMenuList.add("增肌");
        teachMenuList.add("放松");
        teachMenuList.add("瑜伽");
        teachMenuList.add("跑步");

        return  teachMenuList;
    }


    public static ArrayList getSportTypeHome(){
        ArrayList<SportTypeBean> sportType = new ArrayList<SportTypeBean>();
        SportTypeBean sportTypeBean1 = new SportTypeBean("111111111111111111","沙地模式","25:00");
        SportTypeBean sportTypeBean2 = new SportTypeBean("111111111111111111","高原模式","25:00");
        SportTypeBean sportTypeBean3 = new SportTypeBean("111111111111111111","登山模式","25:00");
        SportTypeBean sportTypeBean4 = new SportTypeBean("111111111111111111","滨海小镇","25:00");
        SportTypeBean sportTypeBean5 = new SportTypeBean("111111111111111111","暴走模式","25:00");
        SportTypeBean sportTypeBean6 = new SportTypeBean("111111111111111111","音乐模式","25:00");

        sportType.add(sportTypeBean1);
        sportType.add(sportTypeBean2);
        sportType.add(sportTypeBean3);
        sportType.add(sportTypeBean4);
        sportType.add(sportTypeBean5);
        sportType.add(sportTypeBean6);


        return  sportType;
    }


    public static ArrayList getHealthList(){
        ArrayList<String> healthList = new ArrayList<String>();
        healthList.add("http://ofplk6att.bkt.clouddn.com/home_boji.png");
        healthList.add("http://ofplk6att.bkt.clouddn.com/home_zengji.png");
        healthList.add("http://ofplk6att.bkt.clouddn.com/home_suxing.png");
        healthList.add("http://ofplk6att.bkt.clouddn.com/home_yujia.png");
        healthList.add("http://ofplk6att.bkt.clouddn.com/home_qixie.png");
        healthList.add("http://ofplk6att.bkt.clouddn.com/home_jianzhi.png");
        return  healthList;
    }
    //healthList.add("http://ofplk6att.bkt.clouddn.com/home_movie.png");120.181728,30.306727
    //healthList.add("http://ofplk6att.bkt.clouddn.com/home_music.png");91.210166,29.636627
    //healthList.add("http://ofplk6att.bkt.clouddn.com/home_import_class.png");102.954294,29.976163

    public static  ArrayList getSportDisSpice(){
        ArrayList arrayList = new ArrayList();
        SportDisSpiceBean sp1 = new SportDisSpiceBean(1,"测试1","测试2",29.988938,102.981349,29.632566,91.139585,"http://img.hb.aicdn.com/453c1cefb19fb73566a6e036dc8109f7883113ba16c5b-JicWZg_fw658","最美318","走在天堂和地狱之间国道318",18000);
        SportDisSpiceBean sp2 = new SportDisSpiceBean(2,"测试1","测试2",30.308135,120.369698,30.262479,120.357252,"http://img.hb.aicdn.com/03fe29e6c986a085949f53acb4bbabf8f91ae9668cba-4iQkKe_fw658","世界之巅我来了","来到这里不为爬山，只为看一眼珠峰，那是一块没有雕琢的原始玉石，有着自己独特的风格与造型，处处散发着自然的芬芳，被称为人类的最后一块净土",18000);
        SportDisSpiceBean sp3 = new SportDisSpiceBean(3,"测试1","测试2",36.583095,101.804877,37.358787,97.312842,"http://img.hb.aicdn.com/7ce77f90105f9c3a56afd52905b22e48097aa53ee2ba-64cqgn_fw658","只为看你一眼女神，青海湖","广阔灿烂的星空，月光下波光粼粼的湖水，以及两个人依偎坐在湖边草地上，寒风中傻傻的拍星空。我忘记了寒风刺骨的冷，记住了一起仰望星空时的浪漫",18000);
        SportDisSpiceBean sp4 = new SportDisSpiceBean(4,"测试1","测试2",36.104044,103.881307,40.142668,94.641805,"http://a3-q.mafengwo.net/s6/M00/20/A1/wKgB4lM9DkmAblWZAARK4eQiT8Y91.jpeg?imageMogr2%2Fthumbnail%2F%211020x540r%2Fgravity%2FCenter%2Fcrop%2F%211020x540%2Fquality%2F100","大漠孤烟，长河落日","悠扬的驼铃声在遥远的丝绸之路上此起彼伏，盛大的敦煌作为丝绸之路的重要关隘，历经沧桑，几度盛衰，步覆蹒跚地走过了几千年漫长曲折的里程。",18000);
        SportDisSpiceBean sp5 = new SportDisSpiceBean(5,"测试1","测试2",30.121388,97.27939,30.076899,97.284733,"http://img.hb.aicdn.com/9b12e4f6ae39de03a01608c747e180e3ff9de8cd356cb-CVC6Z9_fw658","怒江72拐","七十二拐不算是景点，可是她用她的险峻和壮美吸引着一批批的驴友前来，人们只是记住了她的险，却忘却了在此不幸遇难的驴友，以及他们用生命换来的教训",18000);

        arrayList.add(sp1);
        arrayList.add(sp2);
        arrayList.add(sp3);
        arrayList.add(sp4);
        arrayList.add(sp5);
        arrayList.add(sp1);
        arrayList.add(sp2);
        arrayList.add(sp3);
        arrayList.add(sp4);
        arrayList.add(sp5);

        return arrayList;
    }




    public static String[] MUST_PERMISSIONS = {
            Manifest.permission.ACCESS_FINE_LOCATION,
            Manifest.permission.READ_PHONE_STATE,
//            Manifest.permission.CAMERA,
//            Manifest.permission.RECORD_AUDIO,
            Manifest.permission.WRITE_EXTERNAL_STORAGE,
//            Manifest.permission.WRITE_SETTINGS,
            //Manifest.permission.READ_CELL_BROADCASTS,
            Manifest.permission.MODIFY_AUDIO_SETTINGS,
            Manifest.permission.CHANGE_WIFI_STATE
    };
}
